﻿using System.Collections.Generic;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data.Interfaces
{
    public interface IDealerDao
    {
        int GetDealerCountByFilter(string name, int dealerGroupId);

        List<Dealer> GetDealersByFilter(string name, int dealerGroupId, int jtStartIndex, int jtPageSize,
                                            string jtSorting);

        List<Dealer> GetDealers();

        Dealer AddDealer(Dealer dealer);
        void UpdateDealer(Dealer dealer);
        void DeleteDealer(int dealerId);
        int GetMaxId();
        int GetCurrentIdentity();
        Dealer GetById(int id);
    }
}
